/**
 * @author:linjiye
 * @date: 2024/12/18
 * @desc:
 **/

import {StyleSheet, Text, View} from 'react-native'
import React from 'react'
import {NewsDataType} from "@/types/test";

type Props = {
  sliderItem: NewsDataType
}

const MyTest = ({sliderItem}: Props) => {
    return (
        <View style={styles.container}>
            <Text>MyTest</Text>
            <Text>{sliderItem.name}</Text>
            <Text>{sliderItem.year}</Text>
        </View>
    )
}

export default MyTest

const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: "center",
        alignItems: "center",
    },
})